package com.service.healthycode.service;

import com.service.config.utils.Result;
import com.service.healthycode.dto.DangerUserDto;
import com.service.healthycode.entity.UserLoginRecords;

import java.util.List;

/**
 * @author: hjl
 * @date: 2022/04/13 14:39
 * @description:
 */
public interface AdminService {
    /**
     * 上传风险人员
     * @param dangerUserDto
     * @param userDto
     * @return
     */
    Result addDangerUser(DangerUserDto dangerUserDto, UserLoginRecords userDto);

    Result delDangerUser(String dangerUserId);

    Result updateDangerUser(DangerUserDto dangerUserDto, UserLoginRecords userDto);

    Result queryAllDangerUser();

    Result queryDangerUserById(String dangerUserId);

    Result queryTouchUser(DangerUserDto dangerUserDto,String adminId);

    /**
     * 修改风险人员状态
     * @param origin
     * @param status
     * @param id
     * @param userDto
     * @return
     */
    Result updateDangerUserStatus(Integer origin, Integer status, UserLoginRecords userDto, Boolean flag,String terminalMac);


    /**
     * 查询所有上传的风险人员
     * @return
     */
    Result queryUploadRiskUser();

}
